package com.platform.core.constants;

import com.platform.comm.enums.IDictEntry;
import com.platform.comm.enums.IEnumItem;

/**
 * 内容状态
 *
 * @author wxw
 * @version 1.0
 * @date 2021-09-16
 */
public enum InterfaceStatus implements IDictEntry, IEnumItem {

    /**
     * 草稿
     */
    DRAFT("草稿"),

    /**
     * 发布
     */
    PUBLISHED("发布");

    private final String description;

    InterfaceStatus(String description) {
        this.description = description;
    }

    public String getDescription() {
        return description;
    }

    @Override
    public String getKey() {
        return name();
    }

    @Override
    public String getValue() {
        return description;
    }

    @Override
    public Object getData() {
        return null;
    }

    @Override
    public boolean is(String code) {
        return false;
    }
}
